package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SyEmpDao;
import cn.com.bdqn.entity.SyEmp;
import cn.com.bdqn.service.SyEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyEmpServiceImpl implements SyEmpService {

    @Autowired
    private SyEmpDao dao;

    @Override
    public List<SyEmp> queryByLike(SyEmp syEmp) {
        return dao.queryByLike(syEmp);
    }

    @Override
    public SyEmp queryById(Long id) {
        return dao.queryById(id);
    }

    @Override
    public int updateSyEmp(SyEmp syEmp) {
        return dao.updateSyEmp(syEmp);
    }

    @Override
    public int addSyEmp(SyEmp syEmp) {
        return dao.addSyEmp(syEmp);
    }

    @Override
    public int delSyEmp(Long id) {
        return dao.delSyEmp(id);
    }
}
